package com.xqboss.chain.domain.chain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.xqboss.chain.enums.UpChainStatusEnum;
import com.xqboss.chain.enums.UpChainTypeEnum;
import com.xqboss.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 上链日志表
 * </p>
 *
 * @author ct
 * @since 2023-06-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="UpUpdateChainLog对象", description="上链日志表")
public class UpUpdateChainLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("上链ID")
    private Long upUpdateChainId;

    @ApiModelProperty("发起者")
    private String fromAddress;

    @ApiModelProperty("合约地址")
    private String contract;

    @ApiModelProperty("接受者")
    private String toAddress;

    @ApiModelProperty("交易Hash")
    private String txHash;

    @ApiModelProperty(value = "交易类型 1铸造 2转移")
    private UpChainTypeEnum txType;

    @ApiModelProperty(value = "状态")
    private UpChainStatusEnum txStatus;

    @ApiModelProperty(value = "订单流水号，与亿链通用")
    private String reqNo;

    @ApiModelProperty(value = "交易回执")
    private String receipt;

    @ApiModelProperty(value = "上链回调")
    private String notify;

    @TableLogic
    private Boolean delFlag;


}
